import { createApp } from 'vue'
import { createPinia } from 'pinia'

// @ts-ignore
import App from './App.vue'
import router from "@/router";
import axios from "axios";
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
//暗夜模式
import 'element-plus/theme-chalk/dark/css-vars.css'
const app=createApp(App)
// @ts-ignore
import BaiduMap from 'vue-baidu-map-3x'
import dayjs from 'dayjs'
axios.defaults.baseURL = 'http://localhost:8080'
app.use(BaiduMap, {
    ak: "5tCGhf65BEphUHof2wVXkpqBb4BAAB2I"  //使用自己的ak
})
app.config.globalProperties.$dayjs = dayjs
app.use(createPinia())
app.use(router)
app.mount('#app')
